#!/usr/bin/env python3
# -*- coding: utf-8 -*-

' a test module '

__author__ = " Joe"

from PIL import Image

im = Image.open("BingWallpaper-2015-12-17.jpg")
print(im.format,im.size,im.mode)
im.thumbnail((250, 156))
im.save('thumb.jpg', 'JPEG')
im = Image.open("thumb.jpg")
print(im.format,im.size,im.mode)
